package nl.runnable.solr.xslt.client;

import java.util.Collections;
import java.util.Map;

import org.springframework.core.io.Resource;

/**
 * Simple holder for injecting a {@link Resource} and specifying configuration for use in test cases.
 * 
 * @author Laurens Fridael
 * 
 */
public class DataHolder {
	private Resource resource;

	private String stylesheet;

	private Map<String, String> stylesheetParameters = Collections.emptyMap();

	public void setResource(final Resource resource) {
		this.resource = resource;
	}

	public Resource getResource() {
		return resource;
	}

	public void setStylesheet(final String stylesheet) {
		this.stylesheet = stylesheet;
	}

	public String getStylesheet() {
		return stylesheet;
	}

	public void setStylesheetParameters(final Map<String, String> stylesheetParameters) {
		this.stylesheetParameters = stylesheetParameters;
	}

	public Map<String, String> getStylesheetParameters() {
		return stylesheetParameters;
	}

}
